<?php 
function  __autoload($class_name = NULL)
{
  if(is_null($class_name))
  {
    throw new Exception("Class name can not be NULL");
  }
  
  require_once (dirname(__FILE__) . "/" . str_replace("_", "/", $class_name)).".class.php";
}

?>